package com.ruoyi.system.domain.bo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 租户模块业务对象 sys_business_module
 *
 * @author pengju.liao
 * @date 2022-03-21
 */

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("租户模块业务对象")
public class SysBusinessModuleBo extends BaseEntity {

    /**
     * 模块ID
     */
    @ApiModelProperty(value = "模块ID", required = true)
    @NotNull(message = "模块ID不能为空", groups = {EditGroup.class})
    private Long id;

    /**
     * 模块名称
     */
    @ApiModelProperty(value = "模块名称", required = true)
    @NotBlank(message = "模块名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String moduleName;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String remark;

    /**
     * 菜单组
     */
    @ApiModelProperty(value = "菜单组")
    @TableField(exist = false)
    private Long[] menuIds;


}
